﻿using Ace.AutoMapper;
using Ace.Entity.Wiki;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;

namespace Ace.Application.Wiki
{
    public class PromotionInputBase: ValidationModel
    {
        public string Title { get; set; } 

        public decimal MaxLimit { get; set; }

        public decimal CutPrice { get; set; }

        public DateTime Date1 { get; set; }

        public DateTime Date2 { get; set; }

        public int ST { get; set; }

        public DateTime CreateDate { get; set; }
    }


    [MapToType(typeof(Promotion))]
    public class AddPromotionInput : PromotionInputBase
    { 
    }

    [MapToType(typeof(Promotion))]
    public class UpdatePromotionInput : PromotionInputBase
    {
        [RequiredAttribute(ErrorMessage = "{0}不能为空")]
        public string Id { get; set; }
    }
}
